/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Map;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;

/**
 *
 * @author Eric-Standard
 */
public class ColorTile extends Tile {

    public Color color;
    public static final Dimension size = new Dimension(Map.TILE_HEIGHT, Map.TILE_WIDTH);

    public ColorTile(Color color) {
        this.color = color;
    }

    @Override
    public void draw(Graphics g, int x, int y) {
        g.setColor(color);
        g.fillRect(x, y, size.height, size.width);
    }

    @Override
    public Dimension getSize() {
        return size;
    }
}
